public class LogicalControl {
    static void logicalControl() {
        int a = Math.max(10, 20);
        System.out.println(a);
        int b = Math.abs(30 - 40);//绝对值
        System.out.println(b);
        double c = Math.sqrt(50);//只能是double,float也不行
    }
}
